package com.reggie.module.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reggie.module.entity.po.Dish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author 早睡蛋
 * @Date 2022/9/17 14:27:50
 * @Desc:
 */
@Mapper
public interface DishMapper extends BaseMapper<Dish> {


    //查询菜单分类是否关联了菜品（用于删除菜单时判断）
    Integer dishIsExist(Long categoryId);

    //更新菜品
    Integer updateDish(Dish dish);

    List<String> getImage();



}
